/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package org.jackysoft.entity;

import java.io.Serializable;
import java.util.Set;


/**
 * Simple implemenation.
 *
 * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a>
 */
public class SimpleWorkflowEntry extends AbstractWorkflowEntry implements  Serializable {
    //~ Instance fields ////////////////////////////////////////////////////////

    /**
	 * 
	 */
	private static final long serialVersionUID = 8711289355740754858L;
	    
    private OsWorkflowToken rootToken;
	private Set<OsWorkflowToken> currentTokens;
    //~ Constructors ///////////////////////////////////////////////////////////

    public SimpleWorkflowEntry(long id, String workflowName, int state) {
        this.id = id;
        this.workflowName = workflowName;
        this.state = state;
    }

    //~ Methods ////////////////////////////////////////////////////////////////

  	public OsWorkflowToken getRootToken() {
		return rootToken;
	}

	public void setRootToken(OsWorkflowToken rootToken) {
		this.rootToken = rootToken;
	}

	public Set<OsWorkflowToken> getCurrentTokens() {
		return currentTokens;
	}

	public void setCurrentTokens(Set<OsWorkflowToken> currentTokens) {
		this.currentTokens = currentTokens;
	}
}
